home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Oberon⁄F™ 1.2 / Preinstalled version / Form / Docu / Gen (.txt) < prev    next >
Encoding:
Oberon Document  |  1996-03-29  |  3.1 KB  |  70 lines  |  [oODC/obnF]

  1. Documents.StdDocumentDesc
  2. Documents.DocumentDesc
  3. Containers.ViewDesc
  4. Views.ViewDesc
  5. Stores.StoreDesc
  6. Documents.ModelDesc
  7. Containers.ModelDesc
  8. Models.ModelDesc
  9. Stores.ElemDesc
  10. TextViews.StdViewDesc
  11. TextViews.ViewDesc
  12. TextModels.StdModelDesc
  13. TextModels.ModelDesc
  14. TextModels.AttributesDesc
  15. Helvetica
  16. TextRulers.StdRulerDesc
  17. TextRulers.RulerDesc
  18. TextRulers.StdStyleDesc
  19. TextRulers.StyleDesc
  20. TextRulers.AttributesDesc
  21. Helvetica
  22. Helvetica
  23. Helvetica
  24. Helvetica
  25. Helvetica
  26. Helvetica
  27. FormGen
  28. DEFINITION FormGen;
  29.     IMPORT Dialog;
  30.         new: RECORD 
  31.             link: Dialog.String;
  32.             Create: PROCEDURE;
  33.             Empty: PROCEDURE
  34.         END;
  35.     PROCEDURE CreateGuard (VAR par: Dialog.Par);
  36.     PROCEDURE Notify(op, from, to: LONGINT);
  37. END FormGen.
  38. FormGen is a generator for a form layout. It takes the name of an interactor variable (any exported record) as input and creates a default layout for the fields of the interactor. The following list describes the mapping from field types to controls.
  39. SHORTINT, INTEGER, LONGINT    Field
  40. REAL, LONGREAL    Field
  41. ARRAY OF CHAR    Field
  42. BOOLEAN    CheckBox
  43. PROCEDURE    PushButton
  44. Dates.Date    DateField
  45. Dates.Time    TimeField
  46. Dialog.Color    ColorField
  47. Dialog.Currency    Field
  48. (extension of) Dialog.Enumeration    ListBox
  49. (extension of) Dialog.Combo    ComboBox
  50. (extension of) Dialog.Selection    SelectionBox
  51. (extension of) Dialog.LargeSet    SelectionBox
  52. VAR new
  53. Interactor for the form generator dialog.
  54. link: Dialog.String
  55. The name of the interactor for which a default layout should be generated. The name must be an identifier qualified with the module name, e.g. "FormGen.new".
  56. Create: PROCEDURE
  57. Create a default layout for the interactor specified in link.
  58. Empty: PROCEDURE
  59. Create an empty form layout.
  60. PROCEDURE CreateGuard
  61. Guard for new.Create.
  62. PROCEDURE Notify
  63. Notifier for new.link.
  64. TextControllers.StdCtrlDesc
  65. TextControllers.ControllerDesc
  66. Containers.ControllerDesc
  67. Controllers.ControllerDesc
  68. Helvetica
  69. Documents.ControllerDesc
  70.